package net.wisos.opn.entity;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;

import net.wisos.opn.cms.entity.News;

@Embeddable
public class OrderItem {
	private News product;
	private double unitPrice;
	private int quantity;

	/**
	 * @return the product
	 */
	@JoinColumn(name = "product_id")
	public News getProduct() {
		return product;
	}

	/**
	 * @param product
	 *            the product to set
	 */
	public void setProduct(News product) {
		this.product = product;
	}

	/**
	 * @return the unitPrice
	 */
	public double getUnitPrice() {
		return unitPrice;
	}

	/**
	 * @param unitPrice
	 *            the unitPrice to set
	 */
	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	/**
	 * @return the quantity
	 */
	public int getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity
	 *            the quantity to set
	 */
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

}
